package com.freight.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.freight.core.base.FreightBaseEntity;
import com.freight.core.common.constant.CommonConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Entity;
import javax.persistence.Table;


@Data
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "user_vehicle_license")
@TableName("user_vehicle_license")
@ApiModel(value = "行驶证")
public class VehicleLicense extends FreightBaseEntity {

    @ApiModelProperty(value = "GPS设备号")
    private String gpsEquipment;

    @ApiModelProperty(value = "车牌号码")
    private String vehicleNum;

    @ApiModelProperty(value = "车辆识别代号")
    private String vin;

    @ApiModelProperty(value = "颜色类型")
    private String colorType;

    @ApiModelProperty(value = "油类型")
    private String oilType;

    @ApiModelProperty(value = "所有人名称")
    private String vehicleOwner;

    @ApiModelProperty(value = "行驶证发证机关")
    private String issuingAuthority;

    @ApiModelProperty(value = "车辆一级类型")
    private String vehicleType;

    @ApiModelProperty(value = "车辆二级类型")
    private String vehicleLength;

    @ApiModelProperty(value = "行驶证正面地址")
    private String vehicleLicenseFontPicFileID;

    @ApiModelProperty(value = "行驶证反面地址")
    private String vehicleLicenseBackPicFileID;

    @ApiModelProperty(value = "认证状态")
    private Integer registStatus  = CommonConstant.REGIST;

    @ApiModelProperty(value = "管理人Id")
    private Long manageUserId;



}